<%@page import="sendmail.Constants"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TAU Sendmail - edit mail contents</title>
</head>
<body>
	<fieldset>
		<legend> Select Language </legend>
		<form action="/admin/view_content" method="post">
			<select name="<%=Constants.LANG%>">
				<option>Select langugate</option>
				<option value="<%=Constants.LANG_ENGLISH%>" <%= Constants.LANG_ENGLISH.equals(request.getAttribute(Constants.LANG)) ? "selected=true" : "" %>>English</option>
				<option value="<%=Constants.LANG_KOREAN%>" <%= Constants.LANG_KOREAN.equals(request.getAttribute(Constants.LANG)) ? "selected=true" : "" %>>Korean</option>
			</select> <input type="submit" value="View">
		</form>
	</fieldset>

	<fieldset>
		<legend>Edit Contents</legend>
		<form method="post" action="/admin/submit_content">

			<div>
			<label style="float: left;width: 65px">Subject: </label>
				<input type="text" name="<%=Constants.SUBJECT%>"
					value="<%=request.getAttribute(Constants.SUBJECT)%>" /> <br />
			<label style="float:left ;width: 65px">Body: </label>
				<textarea rows="25" cols="120" name="<%=Constants.BODY%>"><%=request.getAttribute(Constants.BODY)%></textarea>
				<br /> 
			<input type="submit" value="Submit"> 
			<input name="<%= Constants.LANG %>"
					type="hidden" value="<%=request.getAttribute(Constants.LANG)%>">
			</div>

		</form>
	</fieldset>
</body>
</html>